tools: use pidfile for test if xenstored is running
authorJuergen Gross <jgross@suse.com>
Tue, 2 Aug 2016 16:10:46 +0000 (18:10 +0200)
committerWei Liu <wei.liu2@citrix.com>
Fri, 5 Aug 2016 09:37:11 +0000 (10:37 +0100)
commitc74dd50bc0c575ea7cbfc6aaeb71320378f1db13
tree062eff5bd56ab9c3f948d0681b2510db46f2c767
parente57a2fb3a38278621d937d91e57401b1ed0c3bb0
tools: use pidfile for test if xenstored is running

Instead of trying to read xenstore via xenstore-read use the pidfile
of xenstored for the test whether xenstored is running. This prepares
support of xenstore domain, as trying to read xenstore will block
for ever in case xenstore domain is started after trying to read.

Signed-off-by: Juergen Gross <jgross@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/hotplug/Linux/init.d/xencommons.in
tools/hotplug/Linux/launch-xenstore.in